<?php
/**
 * @filename MenuItem.php
 * @author LD King
 * @encoding UTF-8
 * @date 2008-9-10 | 下午08:21:25
 * @package 09-Iterator
 * @subpackage 
 * @usage 菜单
 * @note 
 * @copyright Copyright (c) 2007 - 2008 LD (http://mifunny.info)
 * @version $Id: $
 */

class MenuItem {
	
	/**
	 * 名称
	 *
	 * @var string
	 */
	private $name;
	
	/**
	 * 描述
	 *
	 * @var string
	 */
	private $description;
	
	/**
	 * 素食
	 *
	 * @var boolean
	 */
	private $vegetarian;
	
	/**
	 * 价格
	 *
	 * @var double
	 */
	private $price;
	
	/**
	 * 初始化菜单 
	 *
	 * @param string $name
	 * @param string $description
	 * @param boolean $vegetarian
	 * @param double $price
	 */
	public function __construct($name, $description, $vegetarian, $price) {
		$this->name = $name;
		$this->description = $description;
		$this->vegetarian = $vegetarian;
		$this->price = $price;
	}
	
	/**
	 * 一堆getter方法，不多说了
	 */
	public function getName() {
		return $this->name;
	}
	
	public function getDescription() {
		return $this->description;
	}
	
	public function isVegetarian() {
		return $this->vegetarian;
	}
	
	public function getPrice() {
		return $this->price;
	}
}
?>